package ui;

import java.awt.FlowLayout;
import java.util.List;

import javax.swing.JPanel;

import model.Partij;

public class PartijOverzichtPanel extends JPanel
{

	private List<Partij> partijen;

	/**
	 * Create the panel.
	 */
	public PartijOverzichtPanel(List<Partij> partijen)
	{

		this.partijen = partijen;
		setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));

		for (Partij partij : partijen)
		{
			add(new PartijPanel(partij));
		}
	}

}
